package com.atguigu.springcloud.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author yanglin
 * @create 2023-11-09 9:15 星期四
 * description:
 */
@Configuration
public class ApplicationContextConfig {
    
    @Bean
    @LoadBalanced    //赋在均衡
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }
    
}
